//
//  Common.swift
//  YDWeibo01
//
//  Created by suibian on 16/8/9.
//  Copyright © 2016年 iitcast. All rights reserved.
//
//相当于OC中的PCH文件
import UIKit


//切换控制器通知名字

let WEBSWITCHROOTVCNOTIFACATION = "WEBSWITCHROOTVCNOTIFACATION"
//删除按钮点击的通知
let WEBDELETEBUTTONACTION = "WEBDELETEBUTTONACTION"
//button图片 点击按钮的通知
let WEBBUTTONACTION = "WEBBUTTONACTION"
//设置微博相关信息

// 微博账号
let WBName = "18612835882"
let WBPasswd = "aisiqi19891013"

let WBAppKey = "1244267135"
let WBAppSecret = "e5c904768ca2e0a24578bafd8b32e568"
let WBRedirect_uri = "http://www.baidu.com"
//App Key：1244267135 redirect_uri
//App Secret：e5c904768ca2e0a24578bafd8b32e568

//app 主题颜色
let AppThemeColor = UIColor.orangeColor()

//屏幕的宽高
let KSCREENW = UIScreen.mainScreen().bounds.size.width
let KSCREENH = UIScreen.mainScreen().bounds.size.height

//设置随机颜色 alpha 默认为1    -> 返回一个颜色
func RGB(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat = 1) -> UIColor{
    return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: alpha)



}
    func randomColor() ->UIColor{
        let r = CGFloat(random()%256)
        let g = CGFloat(random()%256)
        let b = CGFloat(random()%256)
        
        return RGB(r, green: g, blue: b)


}
